package org.example.myframework.frame.demo.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.example.myframework.frame.demo.domain.base.PageRo;
import org.example.myframework.frame.demo.domain.base.PageVo;
import org.example.myframework.frame.demo.domain.entity.TestTablePlus;
import org.example.myframework.frame.demo.domain.pojo.ro.TestTablePlusRo;

public interface TestTablePlusService extends IService<TestTablePlus> {

    /**
     * 获取分页列表,集成techvalley方法后的
     * @param testTablePlusPageRo
     * @return
     */
    PageVo<TestTablePlus> getPage(PageRo<TestTablePlusRo> testTablePlusPageRo);

    Page<TestTablePlus> getBasePage(Page<TestTablePlus> page);

    TestTablePlus getByTableId(Long id);

    void throwExceptionTest();

    /**
     * 新增
     * @param ro
     * @return
     */
    Boolean saveEntity(TestTablePlusRo ro);

    /**
     * 根据id删除信息
     * @param id
     * @return
     */
    Boolean deleteById(Long id);
}
